
var Observable = require('./Observable.js');
var Observer1 = require('./Observer1.js');
var Observer2 = require('./Observer2.js');

var observable = new Observable();
var o1 = new Observer1();
var o2 = new Observer2();

observable.addObserver(o1);
observable.addObserver(o2);

observable.notifyAll();

observable.removeObserver(o2);

observable.notifyAll();

// http://caibaojian.com/js-splice-element.html
